package com.pzb.page.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pzb.page.mapper.PgPageItemPictureMapper;
import com.pzb.page.domain.PgPageItemPicture;
import com.pzb.page.service.IPgPageItemPictureService;

/**
 * 单图展示Service业务层处理
 * 
 * @author Mr_Wu
 * @date 2021-12-27
 */
@Service
public class PgPageItemPictureServiceImpl implements IPgPageItemPictureService 
{
    @Autowired
    private PgPageItemPictureMapper pgPageItemPictureMapper;

    /**
     * 查询单图展示列表
     * 
     * @param itemId 单图展示
     * @return 单图展示
     */
    @Override
    public PgPageItemPicture selectPgPageItemPictureByItemId(Long itemId)
    {
        return pgPageItemPictureMapper.selectPgPageItemPictureByItemId(itemId);
    }

    /**
     * 新增单图展示
     * 
     * @param pgPageItemPicture 单图展示
     * @return 结果
     */
    @Override
    public int insertPgPageItemPicture(PgPageItemPicture pgPageItemPicture)
    {
        return pgPageItemPictureMapper.insertPgPageItemPicture(pgPageItemPicture);
    }


    /**
     * 删除单图展示信息
     * 
     * @param itemId 单图展示主键
     * @return 结果
     */
    @Override
    public int deletePgPageItemPictureByItemId(Long itemId)
    {
        return pgPageItemPictureMapper.deletePgPageItemPictureByItemId(itemId);
    }
}
